package com.pachong.android.framework.httprequest;


import com.pachong.android.framework.httprequest.responsecallbacks.RequestListener;

import org.json.JSONObject;

import java.util.Map;

public interface IHttpRequest {
	void get(String url, UrlParams params, RequestListener cb);

	void get(String url, UrlParams params, Map<String, String> headParams, RequestListener cb);

	void put(String url, JSONObject jsonObject, RequestListener cb);

	void put(String url, JSONObject jsonObject, Map<String, String> headParams, RequestListener cb);

	void post(String url, UrlParams params, final RequestListener cb);

	void post(String url, UrlParams params, Map<String, String> headParams, final RequestListener cb);

	void post(String url, JSONObject jsonObject, final RequestListener cb);

	void post(String url, JSONObject jsonObject, Map<String, String> headParams, final RequestListener cb);

	void delete(String url, UrlParams params, RequestListener cb);

	void delete(String url, UrlParams params, Map<String, String> headParams, RequestListener cb);

	void finish();
}
